// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import "../delegates"
import "../models"

GridView {
    id: mounthJobs

    signal addJob()
    property int fromTime: currentIndex >= 0 ? currentItem.seconds + 60*60*8 : 0

    width: 700
    height: 100

    model: monthJobModel
    delegate: DayOfMounthElement {}

    highlight: Rectangle {
        color: "lightsteelblue";
        radius: 5
    }

    MouseArea {
        anchors.fill: parent
        onClicked: {
            parent.currentIndex = parent.indexAt(mouseX, mouseY)
            parent.focus=true
        }
        onDoubleClicked: {
            addJob()
        }
    }
}
